<?php
/**
 * Created by PhpStorm.
 * User: lance
 * Date: 13/03/2018
 * Time: 10:39 AM
 */

namespace app\netsite\admin;
use app\admin\controller\Admin;
use app\common\builder\ZBuilder;
use think\Db;

class Record extends Admin {
    //网点列表
    public function sites(){
        $data_list = Db::name('netsite_record')->paginate();
        return ZBuilder::make("table")
            ->hideCheckbox()
            ->addColumns(config("netsite_fields"))
            ->autoAdd(config("fields"),'',true)
            ->autoEdit(config("edit_fields"),'',true)
            ->setRowList($data_list)
            ->fetch();
    }

}

